package cn.mldn.microboot.service.impl;

import cn.mldn.microboot.dao.IDeptDao;
import cn.mldn.microboot.service.IDeptService;
import cn.mldn.microboot.vo.Dept;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * description:
 * Created by gy on 2017/8/21.
 */
@Service
public class DeptServiceImpl implements IDeptService {

    @Resource
    private IDeptDao deptDao;

    @Override
    public List<Dept> list() {
        return this.deptDao.findAll();
    }
}
